#ifndef IMAGEVIEWERWIDGET_H
#define IMAGEVIEWERWIDGET_H

#include <QWidget>

class ImageViewerWidget : public QWidget
{
Q_OBJECT
public:
    explicit ImageViewerWidget(QWidget *parent = 0);

public:
    void setImage(const QImage& image);


protected:
    void paintEvent(QPaintEvent *event);
    void resizeEvent(QResizeEvent *event);

signals:
    void signalSizeChanged(const QSize& size);

public slots:
    void slotPannerRectangleChanged(const QRect& rectangle);

private:
    QImage m_image;
    QImage m_scaledImage;

};

#endif // IMAGEVIEWERWIDGET_H
